package com.qfedu.microuser;

/**
 * @Classname App
 * @Description TODO
 * @Date 2025-10-09 9:19
 * @Created by 老任与码
 */
public class App2 {
    public static void main(String[] args) {
        Integer[] testArr = new Integer[110];
        for (int i = 0; i < 100; i++) {
            int hashCode = i * 0x61c88647 + 0x61c88647;
            int index = hashCode & (110 - 1);
            System.out.println(index);
            if (testArr[index] != null) {
                System.out.println("发生碰撞索引：" + index);
            } else {
                testArr[index] = i;
            }
        }
    }
}
